# alist=[1,2,3] #创建列表
# mlist=list()
# print(type(alist))
# # print(type(mlist))
# print(alist)
# print(alist[0])
# alist.append('hello')#尾插数据
# print(alist)
# alist.insert(0,'world')
# print(alist)
# alist.pop()
# print(alist)
# mlist.append(1)
# mlist.append(2)
# mlist.append(3)
# mlist.append("hello")
# print(mlist)
alist=[1,2,3,4,5,6,7,8,9]
# print(alist[1:])
# print(alist[:-2])
# print(alist[:-1])
# # print(alist[:0])
# #按照步长访问
# print(alist[::2])
# print(alist[::-2])
for elm in alist:
    # print(elm,end='->')
    print(elm)

#使用in操作符进行查找元素
print(3 in alist)
mlist=[10,20,30,40,50,60,70,80,90]
alist=alist+mlist
print(alist)